package com.zqweb.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zqweb.common.utils.PageUtils;
import com.zqweb.gulimall.product.entity.AttrEntity;
import com.zqweb.gulimall.product.entity.AttrGroupEntity;
import com.zqweb.gulimall.product.vo.AttrGroupWithAttrsVo;
import com.zqweb.gulimall.product.vo.AttrRelationVo;
import com.zqweb.gulimall.product.vo.SpuItemAttrGroupVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author zq
 * @email zq@gmail.com
 * @date 2021-11-26 18:38:54
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {
    PageUtils queryPage(Map<String, Object> params);
    PageUtils queryPage(Map<String, Object> params, Long catId);

    List<AttrEntity> getAttrsByGroupId(Long attrGroupId);


    List<AttrGroupWithAttrsVo> getAttrgroupWithAttrsByCatelogId(Long catelogId);

    List<SpuItemAttrGroupVo> getAttrGroupWithAttrsBySpuIdAndCatelogId(Long spuId, Long catalogId);
}

